  /**
   * Generate time : 2016-05-12 16:20:15
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNYdzhcy 
 * table comment : 月度综合样制样 
 */
public class ZMCNYdzhcy extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdStatus = "草拟";		/* 状态*/
	private BigDecimal fdMyMad = new BigDecimal("0");		/* 水分Mad(%)*/
	private BigDecimal fdMyVd = new BigDecimal("0");		/* 挥发分Vd(%)*/
	private BigDecimal fdMySt = new BigDecimal("0");		/* 硫分St,d(%)*/
	private BigDecimal fdMyTrd = new BigDecimal("0");		/* 真密度TRD,d*/
	private BigDecimal fdMyQgr = new BigDecimal("0");		/* 发热量Qgr.v.d(MJ/kg)*/
	private BigDecimal fdMyCd = new BigDecimal("0");		/* 碳Cd(%)*/
	private BigDecimal fdMyHd = new BigDecimal("0");		/* 氢Hd(%)*/
	private BigDecimal fdMyAd = new BigDecimal("0");		/* 灰分Ad(%)*/
	private String fdMyNum = " ";		/* 煤样编码*/
	private String fdForeignId = " ";		/* 外键*/
	private String fdYear = " ";		/* 年份*/
	private String fdMonth = " ";		/* 月份*/
	private String fdReportTime=" ";/*汇报时间*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMad");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("水分Mad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyVd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("挥发分Vd(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMySt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyTrd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("真密度TRD,d");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQgr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qgr.v.d(MJ/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyCd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("碳Cd(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyHd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("氢Hd(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyNum");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignId");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("外键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报时间");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCNYdzhcy() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdMyMad - 水分Mad(%)
	 * @return the fdMyMad
	 */
	public BigDecimal getFdMyMad() {
		return this.fdMyMad;
	}
	
	/**
	 * set the fdMyMad - 水分Mad(%)
	 */
	public void setFdMyMad(BigDecimal fdMyMad) {
		this.fdMyMad = fdMyMad;
	}
	/**
	 * get the fdMyVd - 挥发分Vd(%)
	 * @return the fdMyVd
	 */
	public BigDecimal getFdMyVd() {
		return this.fdMyVd;
	}
	
	/**
	 * set the fdMyVd - 挥发分Vd(%)
	 */
	public void setFdMyVd(BigDecimal fdMyVd) {
		this.fdMyVd = fdMyVd;
	}
	/**
	 * get the fdMySt - 硫分St,d(%)
	 * @return the fdMySt
	 */
	public BigDecimal getFdMySt() {
		return this.fdMySt;
	}
	
	/**
	 * set the fdMySt - 硫分St,d(%)
	 */
	public void setFdMySt(BigDecimal fdMySt) {
		this.fdMySt = fdMySt;
	}
	/**
	 * get the fdMyTrd - 真密度TRD,d
	 * @return the fdMyTrd
	 */
	public BigDecimal getFdMyTrd() {
		return this.fdMyTrd;
	}
	
	/**
	 * set the fdMyTrd - 真密度TRD,d
	 */
	public void setFdMyTrd(BigDecimal fdMyTrd) {
		this.fdMyTrd = fdMyTrd;
	}
	/**
	 * get the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 * @return the fdMyQgr
	 */
	public BigDecimal getFdMyQgr() {
		return this.fdMyQgr;
	}
	
	/**
	 * set the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 */
	public void setFdMyQgr(BigDecimal fdMyQgr) {
		this.fdMyQgr = fdMyQgr;
	}
	/**
	 * get the fdMyCd - 碳Cd(%)
	 * @return the fdMyCd
	 */
	public BigDecimal getFdMyCd() {
		return this.fdMyCd;
	}
	
	/**
	 * set the fdMyCd - 碳Cd(%)
	 */
	public void setFdMyCd(BigDecimal fdMyCd) {
		this.fdMyCd = fdMyCd;
	}
	/**
	 * get the fdMyHd - 氢Hd(%)
	 * @return the fdMyHd
	 */
	public BigDecimal getFdMyHd() {
		return this.fdMyHd;
	}
	
	/**
	 * set the fdMyHd - 氢Hd(%)
	 */
	public void setFdMyHd(BigDecimal fdMyHd) {
		this.fdMyHd = fdMyHd;
	}
	/**
	 * get the fdMyAd - 灰分Ad(%)
	 * @return the fdMyAd
	 */
	public BigDecimal getFdMyAd() {
		return this.fdMyAd;
	}
	
	/**
	 * set the fdMyAd - 灰分Ad(%)
	 */
	public void setFdMyAd(BigDecimal fdMyAd) {
		this.fdMyAd = fdMyAd;
	}
	/**
	 * get the fdMyNum - 煤样编码
	 * @return the fdMyNum
	 */
	public String getFdMyNum() {
		return this.fdMyNum;
	}
	
	/**
	 * set the fdMyNum - 煤样编码
	 */
	public void setFdMyNum(String fdMyNum) {
		this.fdMyNum = fdMyNum;
	}
	/**
	 * get the fdForeignId - 外键
	 * @return the fdForeignId
	 */
	public String getFdForeignId() {
		return this.fdForeignId;
	}
	
	/**
	 * set the fdForeignId - 外键
	 */
	public void setFdForeignId(String fdForeignId) {
		this.fdForeignId = fdForeignId;
	}
	/**
	 * get the fdYear - 年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	/**
	 * get the fdMonth - 月份
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}
	
	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}
	/**
	 * get the fdReportTime - 汇报时间
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}
	
	/**
	 * set the fdReportTime - 汇报时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdMyMad(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMad")), fdMyMad));
		setFdMyVd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyVd")), fdMyVd));
		setFdMySt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMySt")), fdMySt));
		setFdMyTrd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyTrd")), fdMyTrd));
		setFdMyQgr(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQgr")), fdMyQgr));
		setFdMyCd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyCd")), fdMyCd));
		setFdMyHd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyHd")), fdMyHd));
		setFdMyAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyAd")), fdMyAd));
		setFdMyNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyNum")), fdMyNum));
		setFdForeignId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignId")), fdForeignId));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdMyMad",StringUtils.toString(fdMyMad, eiMetadata.getMeta("fdMyMad")));	
			map.put("fdMyVd",StringUtils.toString(fdMyVd, eiMetadata.getMeta("fdMyVd")));	
			map.put("fdMySt",StringUtils.toString(fdMySt, eiMetadata.getMeta("fdMySt")));	
			map.put("fdMyTrd",StringUtils.toString(fdMyTrd, eiMetadata.getMeta("fdMyTrd")));	
			map.put("fdMyQgr",StringUtils.toString(fdMyQgr, eiMetadata.getMeta("fdMyQgr")));	
			map.put("fdMyCd",StringUtils.toString(fdMyCd, eiMetadata.getMeta("fdMyCd")));	
			map.put("fdMyHd",StringUtils.toString(fdMyHd, eiMetadata.getMeta("fdMyHd")));	
			map.put("fdMyAd",StringUtils.toString(fdMyAd, eiMetadata.getMeta("fdMyAd")));	
			map.put("fdMyNum",StringUtils.toString(fdMyNum, eiMetadata.getMeta("fdMyNum")));	
			map.put("fdForeignId",StringUtils.toString(fdForeignId, eiMetadata.getMeta("fdForeignId")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdMonth",StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));	
			map.put("fdReportTime",StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));	
			
		return map;
	
	}
}